Ext.define('carManage.view.driverInfo.SearchForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.searchForm',
    frame: false,
    bodyStyle: 'padding: 6px',
    items: [{
            xtype: 'container',
            anchor: '100%',
            layout: 'hbox',
            items: [{
                    xtype: 'container',
                    flex: 3,
                    layout: 'anchor',
                    items: [{
                            xtype: 'combo',
                            fieldLabel: '驾驶员',
                            name: 'name_form',
                            id: 'name_form',
                            displayField: 'name',
                            valueField: 'name',
                            emptyText: '驾驶员',
                            anchor: '95%',
                            multiSelect: true,
                            triggerAction: 'all',
                            queryParam: 'name',
                            minChars: 2,
                            store: 'DriverComboStore'
                        },
                        {
                            xtype: 'combo',
                            fieldLabel: '性别',
                            name: 'sex_form',
                            id: 'sex_form',
                            emptyText: '性别',
                            triggerAction: 'all',
                            anchor: '95%',
                            store: [
                                ['1', '男'],
                                ['2', '女']
                            ]
                        }]
                },
                {
                    xtype: 'container',
                    flex: 3,
                    layout: 'anchor',
                    items: [
                        {
                            xtype: 'datefield',
                            altFormats: 'Ymd',
                            format: 'Ymd',
                            dateFormat: 'Ymd',
                            fieldLabel: '出生年月',
                            emptyText: '出生年月',
                            name: 'born_form_form',
                            id: 'born_form_form',
                            anchor: '95%'
                        },
                        {
                            xtype: 'datefield',
                            altFormats: 'Ymd',
                            format: 'Ymd',
                            dateFormat: 'Ymd',
                            fieldLabel: '到',
                            emptyText: '到',
                            name: 'born_end_form',
                            id: 'born_end_form',
                            anchor: '95%'
                        }
                    ]},
                {
                    xtype: 'container',
                    flex: 3,
                    layout: 'anchor',
                    items: [
                        {
                            xtype: 'hidden',
                            fieldLabel: '准驾车型',
                            emptyText: '准驾车型',
                            name: 'car_model_form',
                            id: 'car_model_form',
                            anchor: '95%'
                        },
                        {
                            xtype: 'hidden',
                            fieldLabel: '手机号码',
                            emptyText: '手机号码',
                            name: 'phone_num_form',
                            id: 'phone_num_form',
                            anchor: '95%'
                        },
                        {
                            xtype: 'hidden',
                            fieldLabel: '身份证号码',
                            emptyText: '身份证号码',
                            name: 'id_card_form',
                            id: 'id_card_form',
                            anchor: '95%'
                        },
                        {
                            xtype: 'combo',
                            fieldLabel: '是否兼职',
                            name: 'sideline_form',
                            id: 'sideline_form',
                            emptyText: '是否兼职',
                            displayField: 'name',
                            valueField: 'value',
                            triggerAction: 'all',
                            anchor: '95%',
                            store: [
                                ['yes', '是'],
                                ['no', '否']
                            ]
                        }
                    ]},
                
                {
                    xtype: 'container',
                    flex: 1,
                    layout: 'anchor',
                    items: [{
                            xtype: "button",
                            id: 'query_tbar',
                            text: "查  询",
                            width: 60
                        }]
                }]

        }
    ],
    initComponent: function() {
        this.callParent(arguments);
    }
});